package com.stedu.service;

import com.stedu.bean.Models;
import com.stedu.exception.SteduException;

import java.util.List;

public interface ModelsService {
    //添加

    //添加
    boolean insert(Models m) throws SteduException;
    //删除
    boolean delete(Integer mid) throws SteduException;
    //修改
    boolean update(Models m) throws SteduException;
    //根据id查询
    Models selectByMid(Integer mid);
    //查询所有
    List<Models> selectAll();
}
